package com.mhb.generator.config;

/**
 * 常量
 *
 * @author 博博
 * @Title: ConstantVal
 * @time 2019/12/28 0028 9:01
 */
public final class ConstantVal {

    private ConstantVal(){}

    public static final String UNDERLINE = "_";

    /**
     * 文件名称
     */
    public static final String SERVICE_NAME = "%sService";
    public static final String SERVICE_IMPL_NAME = "%sServiceImpl";
    public static final String MAPPER_NAME = "%sMapper";
    public static final String CONTROLLER_NAME = "%sController";
    public static final String TEMPLATE_SELECT_NAME = "%s_select";
    public static final String TEMPLATE_SAVE_NAME = "%s_save";
    public static final String TEMPLATE_UPDATE_NAME = "%s_update";
    public static final String TEMPLATE_DETAIL_NAME = "%s_detail";

    public static final String ENTITY_PATH = "entity_path";
    public static final String SERVICE_PATH = "service_path";
    public static final String SERVICE_IMPL_PATH = "service_impl_path";
    public static final String MAPPER_PATH = "mapper_path";
    public static final String XML_PATH = "xml_path";
    public static final String CONTROLLER_PATH = "controller_path";
    public static final String TEMPLATE_PATH = "template_path";

    public static final String ENTITY_FILE_NAME = "entity.%s";
    public static final String SERVICE_FILE_NAME = "service.%s";
    public static final String SERVICE_IMPL_FILE_NAME= "service_impl.%s";
    public static final String MAPPER_FILE_NAME = "mapper.%s";
    public static final String XML_FILE_NAME = "xml.%s";
    public static final String CONTROLLER_FILE_NAME = "controller.%s";
    public static final String TEMPLATE_SELECT_FILE_NAME = "view_select_%s.%s";
    public static final String TEMPLATE_SAVE_FILE_NAME = "view_save_%s.%s";
    public static final String TEMPLATE_UPDATE_FILE_NAME = "view_update_%s.%s";
    public static final String TEMPLATE_DETAIL_FILE_NAME = "view_detail_%s.%s";

    public static final String JAVA = "java";
    public static final String XML = "xml";

    // 父类常量
    public static final String SUPER_MAPPER_CLASS = "com.baomidou.mybatisplus.core.mapper.BaseMapper";
    public static final String SUPER_SERVICE_CLASS = "com.baomidou.mybatisplus.extension.service.IService";
    public static final String SUPER_SERVICE_IMPL_CLASS = "com.baomidou.mybatisplus.extension.service.impl.ServiceImpl";
}
